package com.jiangnan.context;

import com.jiangnan.view.HomeFrame;

import javax.swing.*;

/**
 *  全局上下文对象
 * @author chenliang
 * @email wschenliang@aliyun.com
 */
public class GlobalContext {

    private static JFrame homeFrame;
    private static JPanel homePane;


    public static void homeFrame(HomeFrame hf) {
        homeFrame = hf;
    }

    public static JFrame homeFrame() {
        return homeFrame;
    }

    public static void homePane(JPanel jp) {
        homePane = jp;
    }

    public static JPanel homePane() {
        return homePane;
    }
}
